package com.stars.module.grant.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.stars.base.entity.BaseEntity;

/**
 * @author : moon
 * @version : 1.0
 * @date : 2023/03/22
 * @description : 权限控制实体Bean
 */
@TableName("STAR_GRANT")
public class StarGrant extends BaseEntity {

    private String id;

    @TableField("FID")
    private String fid;

    //权限id
    @TableField("SOURCE_ID")
    private String sourceId;

    @TableField("SOURCE_NAME")
    private String sourceName;

    /**
     * 1角色, 2权限
     */
    @TableField("SOURCE_TYPE")
    private Integer sourceType;

    //人员或角色id
    @TableField("TARGET_ID")
    private String targetId;

    @TableField("TARGET_NAME")
    private String targetName;

    // 1用户 2角色
    @TableField("TARGET_TYPE")
    private String targetType;

    @TableField("DEPT_ID")
    private String deptId;

    @TableField("DEPT_NAME")
    private String deptName;

    @TableField("UNIT_ID")
    private String unitId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFid() {
        return fid;
    }

    public void setFid(String fid) {
        this.fid = fid;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getTargetName() {
        return targetName;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    public String getTargetType() {
        return targetType;
    }

    public void setTargetType(String targetType) {
        this.targetType = targetType;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }
}
